home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / batchlrn.arc / BATDO-3.HLP < prev    next >
Text File  |  1991-06-17  |  1KB  |  24 lines

  1.         This file also compares strings (See PAR.HLP) but keep in
  2.         mind we are "walking you thru" concepts (bear with us!).
  3.         FIRST, type:EDLIN LOGON.BAT    SECOND, enter these lines:
  4.                   1) IF %1 = = YOU GOTO YOU
  5.                   2) IF %1 = = ME GOTO ME
  6.                   3) GOTO END
  7.                   4) :YOU
  8.                   5) CD\YOU    [this sub-directory would have to exist]
  9.                   6) TYPE YOUMENU.DOC   [so would this file]
  10.                   7) GOTO END
  11.                   8) :ME
  12.                   9) CD\ME    [same as line #5]
  13.                  10) TYPE MEMENU.DOC [same as line #6]
  14.                  11) GOTO END
  15.                  12) :END
  16.    
  17.         Assuming that the name of this batch file is LOGON.BAT,if
  18.         "YOU" wants to work on the system,  she would type: LOGON
  19.         YOU.  The batch file would execute and treat YOU as>>>>%1
  20.         (The replaceable parameter).The first line compares %1YOU
  21.         with YOU(what was typed). Since they are equal,the second
  22.         command part, which says "GOTO YOU (YOU being a label) is
  23.         executed.This label is the fourth line of the batch file.
  24.